import * as actionType from './comstants'
const defaultState = {
    playList:[]
}

export default (state=defaultState,action) => {
    switch(action.type){
        case actionType.SET_PLAYLIST:
            return {
                ...state,
                playList:action.data
            }
        default:
            return state
    }
}